package com.dc.bobaoge.project.base.core.now.service;

import com.dc.bobaoge.base.entity.core.po.Channel;
import com.dc.bobaoge.base.mapper.core.ChannelMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * ChannelService
 *
 * @author chenxueli
 * @date 2023-12-22 13:59:00
 */
@Slf4j
@Component
public class ChannelService {

    @Resource
    private ChannelMapper channelMapper;

    /**
     * 根据id查询
     *
     * @param channelId 频道id
     * @return 频道信息
     */
    public Channel getById(Long channelId) {
        return channelMapper.selectById(channelId);
    }

}
